/*
 * @Author: HeAo
 * @Date: 2021-11-03 09:33:08
 * @LastEditTime: 2021-11-03 09:40:14
 * @LastEditors: HeAo
 * @Description:
 * @FilePath: \web2103-2105\web2103code\4-1-Nodejs\day04\qs.js
 * 别乱动！
 */
let qs = require('qs');

let obj = {
  name: 'zhangsan',
  age: 12,
  ids: [1, 2, 3],
  test: [
    {
      name: 'english',
      grade: 120
    },
    {
      name: 'math',
      grade: 120
    }
  ]
}
console.log(qs.stringify(obj, {
  arrayFormat: 'repeat',
  allowDots: true
}));
